package com.ruoyi.system.domain.standard_relevant;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 数据操作日志对象 data_oper_log
 *
 * @author ruoyi
 * @date 2024-07-13
 */
@Setter
@Getter
@AllArgsConstructor
public class DataOperLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @Excel(name = "id")
    private Long id;

    /** 操作类型 */
    @Excel(name = "操作类型")
    private String operType;

    /** 数据名称 */
    @Excel(name = "数据名称")
    private String dataName;

    /** 操作内容变化 */
    @Excel(name = "操作内容变化")
    private String content;

    /** 操作用户 */
    @Excel(name = "操作用户")
    private String operUser;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date operTime;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("operType", getOperType())
                .append("dataName", getDataName())
                .append("content", getContent())
                .append("operUser", getOperUser())
                .append("operTime", getOperTime())
                .toString();
    }
}
